package org.example.statemachine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.statemachine.entity.Order;
import org.example.statemachine.enums.OrderStatusChangeEvent;


public interface OrderService extends IService<Order> {
    /**
     * 创建订单
     */
    Order createOrder(Order order);

    /**
     * 改变订单状态
     */
    boolean changeOrderStatus(Long orderId, OrderStatusChangeEvent event);
}
